From 351d88f7ae1492048988122b7f0d4a8fc2db9294 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jonas=20=C3=85dahl?= Date: Fri, 4 Dec 2020 18:35:01 +0100 Subject: [PATCH] wayland/surface: Clear shadow width when hiding Not doing this means the next time the same surface is shown, if the shadow size wasn't changed, it wouldn't be sent to the compositor, which then would result in compositor deriving its own window geometry which would include the shadow margin. This fixes an issue where the file chooser dialog would grow each time it opened. --- gdk/wayland/gdksurface-wayland.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gdk/wayland/gdksurface-wayland.c b/gdk/wayland/gdksurface-wayland.c index b8a1d79f81..d5e777638c 100644 --- a/gdk/wayland/gdksurface-wayland.c +++ b/gdk/wayland/gdksurface-wayland.c @@ -2957,6 +2957,8 @@ gdk_wayland_surface_hide_surface (GdkSurface *surface) unset_transient_for_exported (surface); + impl->last_sent_window_geometry = (GdkRectangle) { 0 }; + _gdk_wayland_surface_clear_saved_size (surface); impl->mapped = FALSE; } -- 2.30.2